#!/bin/sh
# - loops
# - mode

## perf began as a tool for using the performance counters
## subsystem in Linux, and has had various enhancements
## to add tracing capabilities.

loops="${loops%%ops}"
[ "$mode" = 'threads' ] && opt_threads='-T'

log_cmd perf bench sched pipe -l $loops $opt_threads
